package com.wxy.demo.spi;

import java.util.ServiceLoader;

/**
 * <p>
 * spi演示
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2022/11/2 13:46
 */
public class Main {
    public static void main(String[] args) {
        ServiceLoader<UploadCDN> serviceLoader = ServiceLoader.load(UploadCDN.class);
        for (UploadCDN uploadCDN : serviceLoader) {
            uploadCDN.upload("filePath");
        }
    }
}
